package cn.sofwin.day0108.homework;

public class Prime {
    public static void main(String[] args) {
        int sum = 0;

        for (int i = 10; i <= 105; i++) {
            if (i % 2 != 0 & i % 3 != 0 & i % 4 != 0 & i % 5 != 0 & i % 6 != 0 & i % 7 != 0 & i % 8 != 0 & i % 9 != 0) {
                System.out.println(i);
                sum++;

            }
        }
        System.out.println("10~105之间的素数有" + sum + "个");
    }
}
